#!/bin/bash

for  hostName in  doitedu01  doitedu02  doitedu03
do
  echo "清理${hostName}的flume环境..."
  ssh ${hostName}  "rm -rf  /opt/flume_data/
            if  [  $? -eq 0 ]
            then  echo  "本地环境清理成功..."
            else  echo  "本地环境清理失败..."
            fi
  "
done

hdfs  dfs  -rm -r /data/app_log
if  [  $? -eq 0 ]
then  echo  "HDFS环境清理成功..."
else  echo  "HDFS环境清理失败..."
fi
